from django.db import models

# Create your models here.

class Author3(models.Model):
    name = models.CharField(max_length=30,
                            verbose_name='姓名')
    def __str__(self):
        return "作家３：" + self.name

class Book3(models.Model):
    title = models.CharField(max_length=30,
                             verbose_name='书名')
    authors = models.ManyToManyField(Author3)
    def __str__(self):
        return '图书３：' + self.title

